package com.Drools.敲定的几种模式;

public class tst {
    public static void main(String[] args) {
        String a = "cn.cncc.cjdp5";
        String b = "";
        System.out.println(
                aa(
                        "cn.cncc.cjdp5",
                        "cjdp5-sm4-patch",
                        "1.0.4.0-SNAPSHOT",
                        ""
                )
        );

    }
    private static String aa(String ... b){
        StringBuilder sb = new StringBuilder("");
        sb.append("mvn deploy:deploy-file -DgroupId=")
                .append(b[0])
                .append(" -DartifactId=")
                .append(b[1])
                .append(" -Dversion=")
                .append(b[2])//版本
                .append(" -DpomFile=D:\\Work\\ideaMF\\cips\\cjdp5-jars\\")
                .append(b[1] + "-" + b[2] + ".pom")
                .append(" -Dfile=D:\\Work\\ideaMF\\cips\\cjdp5-jars\\")
                .append(b[1] + "-" + b[2] + ".jar")
                .append(" -DrepositoryId=maven-releases")
                .append(" -Durl=http://localhost:8081/repository/maven-releases/");
        return sb.toString();
    }
}
